package com.jumi.microservice.dto.request;

import com.jm.member.common.api.volidator.Validator;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class RealNameUpdateRequest {
    @ApiModelProperty(value = "真实姓名", required = true)
    @NotBlank(message = "真实姓名不可为空！")
    private String truename;

    @ApiModelProperty(value = "身份证号码", required = true)
    @Pattern(regexp = "^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$|" +
            "^[1-9]\\d{5}\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}$", message = "身份证号码不正确！")
    private String idcard;

    @ApiModelProperty(value = "身份证正面",required = true)
    @NotNull(message = "身份证正面照不可为空!")
    private String cardJust;

    @ApiModelProperty(value = "身份证反面",required = true)
    @NotNull(message = "身份证反面照不可为空!")
    private String cardBack;

//    @ApiModelProperty(value = "支付宝账号")
//    private String aliCode;
//
//    @ApiModelProperty(value = "银行卡号")
//    private String bankCard;


    public String getTruename() {
        return truename;
    }

    public void setTruename(String truename) {
        this.truename = truename;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getCardJust() {
        return cardJust;
    }

    public void setCardJust(String cardJust) {
        this.cardJust = cardJust;
    }

    public String getCardBack() {
        return cardBack;
    }

    public void setCardBack(String cardBack) {
        this.cardBack = cardBack;
    }

//    public String getAliCode() {
//        return aliCode;
//    }
//
//    public void setAliCode(String aliCode) {
//        this.aliCode = aliCode;
//    }
//
//    public String getBankCard() {
//        return bankCard;
//    }
//
//    public void setBankCard(String bankCard) {
//        this.bankCard = bankCard;
//    }
}
